package sixth.group.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Orderinf {
    private Integer oid;

    private Integer ocustomerid;

    private Integer oresaurantid;

    private Integer ototalvalue;

    private Date otime;

    private Date ouptime;
    private List<Dishes> dishess=new ArrayList<>();
    private Customer customer;
    private Restaurant restaurant;

    public List<Dishes> getDishess() {
        return dishess;
    }

    public void setDishess(List<Dishes> dishess) {
        this.dishess = dishess;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Restaurant getRestaurant() {
        return restaurant;
    }

    public void setRestaurant(Restaurant restaurant) {
        this.restaurant = restaurant;
    }

    //    private List<>;
    public Orderinf() {
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    public Orderinf(Integer ocustomerid, Integer oresaurantid, Integer ototalvalue) {
        this.ocustomerid = ocustomerid;
        this.oresaurantid = oresaurantid;
        this.ototalvalue = ototalvalue;
    }

    @Override
    public String toString() {
        return "Orderinf{" +
                "oid=" + oid +
                ", ocustomerid=" + ocustomerid +
                ", oresaurantid=" + oresaurantid +
                ", ototalvalue=" + ototalvalue +
                ", otime=" + otime +
                ", ouptime=" + ouptime +
                ", dishess=" + dishess +
                ", customer=" + customer +
                ", restaurant=" + restaurant +
                '}';
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getOcustomerid() {
        return ocustomerid;
    }

    public void setOcustomerid(Integer ocustomerid) {
        this.ocustomerid = ocustomerid;
    }

    public Integer getOresaurantid() {
        return oresaurantid;
    }

    public void setOresaurantid(Integer oresaurantid) {
        this.oresaurantid = oresaurantid;
    }

    public Integer getOtotalvalue() {
        return ototalvalue;
    }

    public void setOtotalvalue(Integer ototalvalue) {
        this.ototalvalue = ototalvalue;
    }

    public Date getOtime() {
        return otime;
    }

    public void setOtime(Date otime) {
        this.otime = otime;
    }

    public Date getOuptime() {
        return ouptime;
    }

    public void setOuptime(Date ouptime) {
        this.ouptime = ouptime;
    }
}